import net from '../index'
import url from '../url'
/*
  法人信息管理api
*/
export const getLegalData = query => {
  return net.post(url.getLegalData, query)
}
export const addLegalData = query => {
  return net.post(url.addLegalData, query)
}
export const editLegalData = query => {
  return net.post(url.editLegalData, query)
}
export const delLegalData = query => {
  return net.delete(url.delLegalData, query)
}
export const seeLegalData = query => {
  return net.get(url.seeLegalData, query)
}
export const queryLegalRegisterType = query => {
  return net.post(url.queryLegalRegisterType, query)
}

/*
  自然人信息管理api
*/ 
export const getNaturalData = query => {
  return net.post(url.getNaturalData, query)
}
export const addNaturalData = query => {
  return net.post(url.addNaturalData, query)
}
export const editNaturalData = query => {
  return net.post(url.editNaturalData, query)
}
export const seeNaturalData = query => {
  return net.get(url.seeNaturalData, query)
}
export const delNaturalData = query => {
  return net.delete(url.delNaturalData, query)
}
export const queryUserByEmpName = query => {
  return net.post(url.queryUserByEmpName, query)
}
